import Vue from 'vue'
import Router from 'vue-router'
import Index from "@/pages/index/index"
// ——————————————————————————————————————基础功能——————————————————————————————————————————
import Login from '@/pages/login/login'  // 登录
import Reg from '@/pages/login/reg'  // 注册
import ForgotPwd from '@/pages/login/forgotPwd'  // 忘记密码
import Identifying from '@/pages/login/identifying'  // 验证手机号

// ——————————————————————————————————————首页——————————————————————————————————————————

// 首页
// import MessageList from "@/pages/Index/MessageNotice/MessageList"
import ExceptionList from "@/pages/index/ExceptionList" // 异常单列表
import ReportAbnormal from "@/pages/index/ReportAbnormal" // 首页异常上报 -- hyjt
import OrderManagement from  "@/pages/index/OrderManagement" // 工单管理 -- hyjt
import OrderFinish from "@/pages/index/OrderFinish" // 工单完结 -- hyjt
import OrderList from "@/pages/index/OrderList" // 运单列表现场
import BiSpectaculars from "@/pages/index/BiSpectaculars" // 运单列表现场
import InventoryList from "@/pages/index/InventoryList" // 库存查询
import TimeOutInventoryList from "@/pages/index/TimeOutInventoryList" // 超时库存查询
import InventoryOrderList from "@/pages/index/InventoryOrderList" // 库存订单
import TimeOutInventoryOrderList from "@/pages/index/TimeOutInventoryOrderList" // 超时库存订单
import InventoCryCheck from '@/pages/index/InventoCryCheck' // 库存盘点
import OrderListDriver from "@/pages/index/OrderListDriver" // 运单列表司机
import OrderListDriverInfo from '@/pages/index/OrderListDriverInfo' //  运单列表司机详情
import ReportAbnoemalEdit from "@/pages/index/ReportAbnoemalEdit" // 异常上报修改
import ReportAbnormalCC from '@/pages/Waybill/LinkScan/ReportAbnormalCC' // 盲扫---hyjt
import ReportAbnormalYC from '@/pages/Waybill/LinkScan/ReportAbnormalYC' // 盲扫---hyjt
import EnterWarehouse from '@/pages/Waybill/LinkScan/EnterWarehouse' // 入库
import EnterWarez from '@/pages/Waybill/LinkScan/EnterWarez' // 入库
import EnterWare from '@/pages/Waybill/LinkScan/EnterWare' // 入库
import CustomerBarCode from  '@/pages/Waybill/LinkScan/CustomerBarCode' // 打印客户条码
import MoveWarehouse from '@/pages/Waybill/LinkScan/MoveWarehouse' // 移库
import AbnormalMove from '@/pages/Waybill/LinkScan/AbnormalMove' // 异常移库
import OutWarehouse from '@/pages/Waybill/LinkScan/OutWarehouse' // 出库
import GenerateBarCode from '@/pages/index/GenerateBarCode'
// ——————————————————————————————————————任务——————————————————————————————————————————
import OrderScan from '@/pages/Waybill/LinkScan/OrderScan' // 扫描---hyjt
import OrderScanCar from '@/pages/Waybill/LinkScan/OrderScanCar' // 装车扫描---hyjt
import BlindScan from '@/pages/Waybill/LinkScan/BlindScan' // 盲扫---hyjt
import QueryOrder from '@/pages/Waybill/LinkScan/QueryOrder' // 运单查询---hyjt
import AbnormalScan from '@/pages/Waybill/LinkScan/AbnormalScan'  // 异常扫描---hyjt
import Abnormal from '@/pages/Waybill/LinkScan/Abnormal'  // 异常上报---hyjt
import SortScan from '@/pages/Waybill/LinkScan/SortScan'  // 分拣扫描---hyjt

//我的任务模块  交付
import QRCode from '@/pages/Waybill/WaybillInfo/Deliver/ewm'  // 二维码页面

// ——————————————————————————————————————个人——————————————————————————————————————————
import HomeIndex from '@/pages/home/home'  // 个人中心首页
import RePassword from '@/pages/home/rePassword'  // 修改密码

Vue.use(Router)

export default new Router({
  routes: [
    // 登录
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/ForgotPwd',
      name: 'ForgotPwd',
      component: ForgotPwd
    },
    {
      path: '/Reg',
      name: 'Reg',
      component: Reg
    },
    {
      path: '/Identifying',
      name: 'Identifying',
      component: Identifying
    },
    // 首页
    {
      path: '/Index',
      name: 'Index',
      component: Index
    },
    // // 消息列表
    // {
    //   path: '/MessageList',
    //   name: 'MessageList',
    //   component: MessageList
    // },
    // 异常单列表
    {
      path: '/ExceptionList',
      name: 'ExceptionList',
      component: ExceptionList
    },
  // 首页异常上报
  {
    path: '/ReportAbnormal',
    name: 'ReportAbnormal',
    component: ReportAbnormal
  },
  // 首页异常上报
  {
    path: '/ReportAbnormalCC',
    name: 'ReportAbnormalCC',
    component: ReportAbnormalCC
  },
  // 首页异常上报
  {
    path: '/ReportAbnormalYC',
    name: 'ReportAbnormalYC',
    component: ReportAbnormalYC
  },
  {
    path: '/ReportAbnoemalEdit',
    name: 'ReportAbnoemalEdit',
    component: ReportAbnoemalEdit
  },
  {
    path: '/EnterWarehouse',
    name: 'EnterWarehouse',
    component: EnterWarehouse
  },
  {
    path: '/EnterWare',
    name: 'EnterWare',
    component: EnterWare
  },
  {
    path: '/EnterWarez',
    name: 'EnterWarez',
    component: EnterWarez
  },
  {
    path: '/CustomerBarCode',
    name: 'CustomerBarCode',
    component: CustomerBarCode
  },
  {
    path: '/MoveWarehouse',
    name: 'MoveWarehouse',
    component: MoveWarehouse
  },
  {
    path: '/OutWarehouse',
    name: 'OutWarehouse',
    component: OutWarehouse
  },
  {
    path: '/OrderManagement',
    name: 'OrderManagement',
    component: OrderManagement
  },
  {
    path: '/OrderFinish',
    name: 'OrderFinish',
    component: OrderFinish
  },
  {
    path: '/OrderList',
    name: 'OrderList',
    component: OrderList
  },
  {
    path: '/InventoryList',
    name: 'InventoryList',
    component: InventoryList
  },
  {
    path: '/TimeOutInventoryList',
    name: 'TimeOutInventoryList',
    component: TimeOutInventoryList
  },
  {
    path: '/GenerateBarCode',
    name: 'GenerateBarCode',
    component: GenerateBarCode
  },
  {
    path: '/InventoCryCheck',
    name: 'InventoCryCheck',
    component: InventoCryCheck
  },
  {
    path: '/InventoryOrderList',
    name: 'InventoryOrderList',
    component: InventoryOrderList
  },
  {
    path: '/TimeOutInventoryOrderList',
    name: 'TimeOutInventoryOrderList',
    component: TimeOutInventoryOrderList
  },
  {
    path: '/OrderListDriver',
    name: 'OrderListDriver',
    component: OrderListDriver
  },
  {
    path: '/OrderListDriverInfo',
    name: 'OrderListDriverInfo',
    component: OrderListDriverInfo
  },
  {
    path: '/BiSpectaculars',
    name: 'BiSpectaculars',
    component: BiSpectaculars
  },
    {
      path: '/OrderScan',
      name: 'OrderScan',
      component: OrderScan
    },
    {
      path: '/OrderScanCar',
      name: 'OrderScanCar',
      component: OrderScanCar
    },
    {
      path: '/BlindScan',
      name: 'BlindScan',
      component: BlindScan
    },
    {
      path: '/QueryOrder',
      name: 'QueryOrder',
      component: QueryOrder
    },
    {
      path: '/SortScan',
      name: 'SortScan',
      component: SortScan
    },
    // 异常扫描
    {
      path: '/AbnormalScan',
      name: 'AbnormalScan',
      component: AbnormalScan
    },
    {
      path: '/Abnormal',
      name: 'Abnormal',
      component: Abnormal
    },
    {
      path: '/AbnormalMove',
      name: 'AbnormalMove',
      component: AbnormalMove
    },
    {
      path: '/QRCode',
      name: 'QRCode',
      component: QRCode
    },
    // 个人中心
    {
      path: '/HomeIndex',
      name: 'HomeIndex',
      component: HomeIndex
    },
    // 修改密码
    {
      path: '/RePassword',
      name: 'RePassword',
      component: RePassword
    },
  ]
})
